package com.yantong.enums;

public enum PropertiesEnum {
	iszhicai("直采"),
	isnew("新品"),
	ishot("爆款"),
	ismao("特卖"),
	isfanchang("返场"),
	ismiaosha("秒杀"),
	islimited("限量"),
	isfashi("假一罚十"),
	iszhutihuakuang("主题画框"),
	isbig("包邮"),
	isTeam("门店采购"),
	isKuaidi("快递直发"),
	isvip("vip"),
	isSpellgroup("拼团"),
	ispresell("预售");
	
	
	private String code;

	private PropertiesEnum(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}
	
	public static String getProByCode(String code) {
		for (PropertiesEnum p : PropertiesEnum.values()) {
			if (code.equals(p.getCode())) {
				return p.name().toString();
			}
		}
		return null;
	}
}
